package com.ayg.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

@TableName("photo")
@Data
@Accessors(chain = true)
public class Photo extends BasePojo{
    @TableId(type = IdType.AUTO)
    private Integer id;             //主键
    private Integer parentId;       //父级目录
    private String photoName;       //相册名称
    private String photoDescribe;   //相册描述
    private String photoTheme;      //相册主题
    private String photoSort;       //相册分类
    private String photoPath;       //相册图片
    private String photoUrl;        //相册图片虚拟路径
    private String date;            //日期
    private boolean status;         //相册状态

    @TableField(exist = false)
    private List<Photo> getList;    //由于自关联但是不是数据库的数据，所以添加该注解
}
